package com.sunwayhorizo.health.ets.base.persistent;

import com.sunwayhorizo.health.ets.base.persistent.pk.EtCncptlistAssgnsPK;

import java.io.Serializable;

import java.sql.Timestamp;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.IdClass;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

@Entity
@NamedQuery(name = "EtCncptlistAssgns.findAll", query = "select o from EtCncptlistAssgns o")
@Table(name = "ET_CNCPTLIST_ASSGNS")
@IdClass(EtCncptlistAssgnsPK.class)
public class EtCncptlistAssgns implements Serializable {
	@Id
	@Column(name = "CONCEPT_ID", nullable = false, insertable = false, updatable = false)
	private String conceptId;
	
	@Id
	@Column(name = "CONCEPTLIST_ID", nullable = false, insertable = false, updatable = false)
	private String conceptlistId;
	
	@Id
	@Column(name = "CONCEPT_ACTIVATION_DATE", nullable = false)
	private Timestamp conceptActivationDate;

	@Column(name = "CONCEPT_RETIRED_DATE", nullable = false)
	private Timestamp conceptRetiredDate;
	
	@Column(name = "CORE_SET_FLAG", nullable = false)
	private String coreSetFlag;
	
	@Column(name = "CREATED_BY", nullable = false)
	private Long createdBy;
	
	@Column(name = "CREATION_DATE", nullable = false)
	private Timestamp creationDate;
	
	@Column(name = "DEFAULT_FLAG", nullable = false)
	private String defaultFlag;
	
	@Column(name = "LAST_UPDATED_BY", nullable = false)
	private Long lastUpdatedBy;
	
	@Column(name = "LAST_UPDATE_DATE", nullable = false)
	private Timestamp lastUpdateDate;
	
	@Column(name = "LAST_UPDATE_LOGIN")
	private Long lastUpdateLogin;
	
	@Column(name = "LOCALLY_PREFERRED_DESC")
	private String locallyPreferredDesc;
	
	@Column(name = "LOCALLY_PREFERRED_DESC_ID")
	private String locallyPreferredDescId;
	
	@Column(name = "LONG_NAME")
	private String longName;
	
	@Column(name = "LONG_NAME_DESC_ID")
	private String longNameDescId;
	
	@Column(name = "MEMBERSHIP_CODE", nullable = false)
	private String membershipCode;
	
	@Column(name = "PRINT_NAME")
	private String printName;
	
	@Column(name = "PRINT_NAME_DESC_ID")
	private String printNameDescId;
	
	@Column(name = "SHORT_NAME")
	private String shortName;
	
	@Column(name = "SHORT_NAME_DESC_ID")
	private String shortNameDescId;
	
	@Column(name = "SYSTEM_FLAG", nullable = false)
	private String systemFlag;
	
	@Column(name = "TERMINOLOGY_PREFERRED_DESC")
	private String terminologyPreferredDesc;
	
	@Column(name = "TERMINOLOGY_PREFERRED_DESC_ID")
	private String terminologyPreferredDescId;

	@ManyToOne
	@JoinColumn(name = "CONCEPTLIST_ID")
	private EtConceptlists etConceptlists;
	
	@ManyToOne
	@JoinColumn(name = "CONCEPT_ID")
	private EtConcepts etConcepts;

	public EtCncptlistAssgns() {
	}

	public String getConceptlistId() {
		return conceptlistId;
	}

	public void setConceptlistId(String conceptlistId) {
		this.conceptlistId = conceptlistId;
	}

	public Timestamp getConceptActivationDate() {
		return conceptActivationDate;
	}

	public void setConceptActivationDate(Timestamp conceptActivationDate) {
		this.conceptActivationDate = conceptActivationDate;
	}

	public String getConceptId() {
		return conceptId;
	}

	public void setConceptId(String conceptId) {
		this.conceptId = conceptId;
	}

	public Timestamp getConceptRetiredDate() {
		return conceptRetiredDate;
	}

	public void setConceptRetiredDate(Timestamp conceptRetiredDate) {
		this.conceptRetiredDate = conceptRetiredDate;
	}

	public String getCoreSetFlag() {
		return coreSetFlag;
	}

	public void setCoreSetFlag(String coreSetFlag) {
		this.coreSetFlag = coreSetFlag;
	}

	public Long getCreatedBy() {
		return createdBy;
	}

	public void setCreatedBy(Long createdBy) {
		this.createdBy = createdBy;
	}

	public Timestamp getCreationDate() {
		return creationDate;
	}

	public void setCreationDate(Timestamp creationDate) {
		this.creationDate = creationDate;
	}

	public String getDefaultFlag() {
		return defaultFlag;
	}

	public void setDefaultFlag(String defaultFlag) {
		this.defaultFlag = defaultFlag;
	}

	public Long getLastUpdatedBy() {
		return lastUpdatedBy;
	}

	public void setLastUpdatedBy(Long lastUpdatedBy) {
		this.lastUpdatedBy = lastUpdatedBy;
	}

	public Timestamp getLastUpdateDate() {
		return lastUpdateDate;
	}

	public void setLastUpdateDate(Timestamp lastUpdateDate) {
		this.lastUpdateDate = lastUpdateDate;
	}

	public Long getLastUpdateLogin() {
		return lastUpdateLogin;
	}

	public void setLastUpdateLogin(Long lastUpdateLogin) {
		this.lastUpdateLogin = lastUpdateLogin;
	}

	public String getLocallyPreferredDesc() {
		return locallyPreferredDesc;
	}

	public void setLocallyPreferredDesc(String locallyPreferredDesc) {
		this.locallyPreferredDesc = locallyPreferredDesc;
	}

	public String getLocallyPreferredDescId() {
		return locallyPreferredDescId;
	}

	public void setLocallyPreferredDescId(String locallyPreferredDescId) {
		this.locallyPreferredDescId = locallyPreferredDescId;
	}

	public String getLongName() {
		return longName;
	}

	public void setLongName(String longName) {
		this.longName = longName;
	}

	public String getLongNameDescId() {
		return longNameDescId;
	}

	public void setLongNameDescId(String longNameDescId) {
		this.longNameDescId = longNameDescId;
	}

	public String getMembershipCode() {
		return membershipCode;
	}

	public void setMembershipCode(String membershipCode) {
		this.membershipCode = membershipCode;
	}

	public String getPrintName() {
		return printName;
	}

	public void setPrintName(String printName) {
		this.printName = printName;
	}

	public String getPrintNameDescId() {
		return printNameDescId;
	}

	public void setPrintNameDescId(String printNameDescId) {
		this.printNameDescId = printNameDescId;
	}

	public String getShortName() {
		return shortName;
	}

	public void setShortName(String shortName) {
		this.shortName = shortName;
	}

	public String getShortNameDescId() {
		return shortNameDescId;
	}

	public void setShortNameDescId(String shortNameDescId) {
		this.shortNameDescId = shortNameDescId;
	}

	public String getSystemFlag() {
		return systemFlag;
	}

	public void setSystemFlag(String systemFlag) {
		this.systemFlag = systemFlag;
	}

	public String getTerminologyPreferredDesc() {
		return terminologyPreferredDesc;
	}

	public void setTerminologyPreferredDesc(String terminologyPreferredDesc) {
		this.terminologyPreferredDesc = terminologyPreferredDesc;
	}

	public String getTerminologyPreferredDescId() {
		return terminologyPreferredDescId;
	}

	public void setTerminologyPreferredDescId(String terminologyPreferredDescId) {
		this.terminologyPreferredDescId = terminologyPreferredDescId;
	}

	public EtConceptlists getEtConceptlists() {
		return etConceptlists;
	}

	public void setEtConceptlists(EtConceptlists etConceptlists) {
		this.etConceptlists = etConceptlists;
		this.conceptlistId = etConceptlists.getConceptlistId();
	}

	public EtConcepts getEtConcepts() {
		return etConcepts;
	}

	public void setEtConcepts(EtConcepts etConcepts) {
		this.etConcepts = etConcepts;
		this.conceptId = etConcepts.getConceptId();
	}
}
